package com.akino.gulimall.member.service;

import com.akino.gulimall.member.vo.MemberLoginVo;
import com.akino.gulimall.member.vo.MemberRegistVo;
import com.akino.gulimall.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.akino.common.utils.PageUtils;
import com.akino.gulimall.member.entity.MemberEntity;

import java.util.List;
import java.util.Map;

/**
 * 会员
 *
 * @author akino
 * @email akino@gmail.com
 * @date 2022-02-08 19:59:43
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<String> regist(MemberRegistVo vo);

    boolean checkMobileUnique(String mobile);
    boolean checkUsernameUnique(String username);

    MemberEntity login(MemberLoginVo loginVo);

    MemberEntity login(SocialUser socialUser);
}

